3.34 \(\int \frac{1+x^3}{x-x^4+x^7} \, dx\)

Optimal. Leaf size=39 \[ -\frac{\tan ^{-1}\left (\frac{1-2 x^3}{\sqrt{3}}\right )}{\sqrt{3}}-\frac{1}{6} \log \left (x^6-x^3+1\right )+\log (x) \]

[Out]

-(ArcTan[(1 - 2*x^3)/Sqrt[3]]/Sqrt[3]) + Log[x] - Log[1 - x^3 + x^6]/6

_______________________________________________________________________________________

Rubi [A]  time = 0.11416, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 7, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.389 \[ -\frac{\tan ^{-1}\left (\frac{1-2 x^3}{\sqrt{3}}\right )}{\sqrt{3}}-\frac{1}{6} \log \left (x^6-x^3+1\right )+\log (x) \]

Antiderivative was successfully verified.

[In]  Int[(1 + x^3)/(x - x^4 + x^7),x]

[Out]

-(ArcTan[(1 - 2*x^3)/Sqrt[3]]/Sqrt[3]) + Log[x] - Log[1 - x^3 + x^6]/6

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 18.0126, size = 41, normalized size = 1.05 \[ \frac{\log{\left (x^{3} \right )}}{3} - \frac{\log{\left (x^{6} - x^{3} + 1 \right )}}{6} + \frac{\sqrt{3} \operatorname{atan}{\left (\sqrt{3} \left (\frac{2 x^{3}}{3} - \frac{1}{3}\right ) \right )}}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((x**3+1)/(x**7-x**4+x),x)

[Out]

log(x**3)/3 - log(x**6 - x**3 + 1)/6 + sqrt(3)*atan(sqrt(3)*(2*x**3/3 - 1/3))/3

_______________________________________________________________________________________

Mathematica [C]  time = 0.0161054, size = 55, normalized size = 1.41 \[ \log (x)-\frac{1}{3} \text{RootSum}\left [\text{$\#$1}^6-\text{$\#$1}^3+1\&,\frac{\text{$\#$1}^3 \log (x-\text{$\#$1})-2 \log (x-\text{$\#$1})}{2 \text{$\#$1}^3-1}\&\right ] \]

Antiderivative was successfully verified.

[In]  Integrate[(1 + x^3)/(x - x^4 + x^7),x]

[Out]

Log[x] - RootSum[1 - #1^3 + #1^6 & , (-2*Log[x - #1] + Log[x - #1]*#1^3)/(-1 + 2
*#1^3) & ]/3

_______________________________________________________________________________________

Maple [A]  time = 0.006, size = 35, normalized size = 0.9 \[ \ln \left ( x \right ) -{\frac{\ln \left ({x}^{6}-{x}^{3}+1 \right ) }{6}}+{\frac{\sqrt{3}}{3}\arctan \left ({\frac{ \left ( 2\,{x}^{3}-1 \right ) \sqrt{3}}{3}} \right ) } \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((x^3+1)/(x^7-x^4+x),x)

[Out]

ln(x)-1/6*ln(x^6-x^3+1)+1/3*3^(1/2)*arctan(1/3*(2*x^3-1)*3^(1/2))

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ -\int \frac{x^{5} - 2 \, x^{2}}{x^{6} - x^{3} + 1}\,{d x} + \log \left (x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((x^3 + 1)/(x^7 - x^4 + x),x, algorithm="maxima")

[Out]

-integrate((x^5 - 2*x^2)/(x^6 - x^3 + 1), x) + log(x)

_______________________________________________________________________________________

Fricas [A]  time = 0.252582, size = 58, normalized size = 1.49 \[ -\frac{1}{18} \, \sqrt{3}{\left (\sqrt{3} \log \left (x^{6} - x^{3} + 1\right ) - 6 \, \sqrt{3} \log \left (x\right ) - 6 \, \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x^{3} - 1\right )}\right )\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((x^3 + 1)/(x^7 - x^4 + x),x, algorithm="fricas")

[Out]

-1/18*sqrt(3)*(sqrt(3)*log(x^6 - x^3 + 1) - 6*sqrt(3)*log(x) - 6*arctan(1/3*sqrt
(3)*(2*x^3 - 1)))

_______________________________________________________________________________________

Sympy [A]  time = 0.32551, size = 41, normalized size = 1.05 \[ \log{\left (x \right )} - \frac{\log{\left (x^{6} - x^{3} + 1 \right )}}{6} + \frac{\sqrt{3} \operatorname{atan}{\left (\frac{2 \sqrt{3} x^{3}}{3} - \frac{\sqrt{3}}{3} \right )}}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((x**3+1)/(x**7-x**4+x),x)

[Out]

log(x) - log(x**6 - x**3 + 1)/6 + sqrt(3)*atan(2*sqrt(3)*x**3/3 - sqrt(3)/3)/3

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.273239, size = 47, normalized size = 1.21 \[ \frac{1}{3} \, \sqrt{3} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x^{3} - 1\right )}\right ) - \frac{1}{6} \,{\rm ln}\left (x^{6} - x^{3} + 1\right ) +{\rm ln}\left ({\left | x \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((x^3 + 1)/(x^7 - x^4 + x),x, algorithm="giac")

[Out]

1/3*sqrt(3)*arctan(1/3*sqrt(3)*(2*x^3 - 1)) - 1/6*ln(x^6 - x^3 + 1) + ln(abs(x))